import Vue from 'vue'
import Router from 'vue-router'
import eBook from './views/ebook/index.vue'
import EbookReader from './components/ebook/EbookReader.vue'
Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      redirect: '/ebook'
    },

    {
      path: '/ebook',
      component: eBook,
      children: [{
        path: ':fileName',
        component: EbookReader
      }]

    }

  ]
})
